package com.yumhai.system.controller;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yumhai.system.service.FeedbackService;
import com.yunhai.common.dto.PaginationVo;
import com.yunhai.common.dto.Ret;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;


@RestController
@RequestMapping("/systems")
public class FeedbackController {

    @Resource
    private FeedbackService feedbackService;

    @RequestMapping("/feedback/pagination")
    public Ret getFeedbackPagination(PaginationVo paginationVo) throws Exception {

        IPage page = feedbackService.getFeedbackPagination(paginationVo);
        return Ret.toPage(page);
    }
}
